package com.huyn.baseframework.model;

import android.graphics.Color;

import com.huyn.baseframework.utils.StringUtils;

/**
 * Created by huyaonan on 16/6/1.
 */
public class ThemeModel extends BaseModel {
    public ThemeData data;
    public int getThemeColor() {
        if(data == null || StringUtils.isBlank(data.themeColor))
            return 0;
        return Color.parseColor(data.themeColor);
    }

    public String getFeedBackUrl() {
        return data == null ? "" : data.feedbackUrl;
    }

    public String getAboutMeUrl() {
        return data == null ? "" : data.aboutmeUrl;
    }

    public AppShare getAppShare() {
        return data == null ? null : data.appShare;
    }

}
